﻿using Microsoft.Xna.Framework;
using XnaPlus.Common.Extensions;
using XnaPlus.Common.Visual;
using XnaPlus.StateManagement.Screens;

namespace EscapeZone.Screens
{
    public class VictoryPopup : PopupScreen
    {

        public new EscapeGame Game { get { return base.Game as EscapeGame; } }

        private readonly ShapeDrawer m_drawer;

        public VictoryPopup(EscapeGame game, MainScreen parent) : base(game, parent)
        {
            m_drawer = new ShapeDrawer(Game.GraphicsDevice);
        }


        public override void Draw(Microsoft.Xna.Framework.GameTime gameTime)
        {
            base.Draw(gameTime);
            m_drawer.DrawRectangle(Game.Bounds.Centered(new Vector2(0.8f, 0.8f)), Color.Gray);

        }
    }
}